﻿using System;
using log4net;
using log4net.Config;

namespace PlayLog4Net
{
    static class Program
    {
        private static void GetStarted()
        {
            // output to console with default layout
            BasicConfigurator.Configure();

            ILog logger = LogManager.GetLogger(typeof(Program));
            logger.Debug("debug information");
            logger.Info("system status and tracking information");
            logger.Warn("Be Careful");
            logger.Error("exception occurs");
            logger.Fatal("!!! System Crash !!!");
        }

        static void Main(string[] args)
        {
            // GetStarted();
            // TestXmlConfig.TestMain();
            TestLogger.TestMain();
        }
    }
}
